package day08.deadThread;

import org.junit.Test;

/**
 * <>
 * <详细描述>
 *
 * @Author WANG.SONG.
 * @Date 2019/3/11 0011 22:07
 * @see
 */
public class Run {


    public static void main(String[] args) throws InterruptedException{
        DeadTest deadTest =new DeadTest();
        deadTest.setFlag("a");
        Thread thread =new Thread(deadTest);
        thread.start();
        Thread.sleep(100);
        deadTest.setFlag("b");
        Thread thread1 =new Thread(deadTest);
        thread1.start();
    }
}
